﻿using System;

namespace SmartAPI.FileReader.Dto
{
    public class FileResultDto
    {
        /// <summary>
        /// 任务id
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 系统任务号
        /// </summary>
        public string TaskNo { get; set; }
        /// <summary>
        /// ⽂件名
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// ⽂件类型
        /// </summary>
        public string FileType { get; set; }
        /// <summary>
        /// ⼦任务数
        /// </summary>
        public int TotalSubTask { get; set; }
        /// <summary>
        /// 处理⼦任务数
        /// </summary>
        public int ProcessSubTask { get; set; }
        /// <summary>
        /// 完成⼦任务数
        /// </summary>
        public int DoneSubTask { get; set; }
        /// <summary>
        /// 任务状态，示例10 新增，20 OCR处理中，21 ⽂件组装中，30 成功，31 部分成功
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// OCR完成时间
        /// </summary>
        public DateTime? OcrFinishTime { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? FinishTime { get; set; }
        /// <summary>
        /// 子任务列表
        /// </summary>
        public string[] SubTaskList { get; set; }
    }


    public class Rootobject
    {
        public int id { get; set; }
        public string taskNo { get; set; }
        public string fileName { get; set; }
        public string fileType { get; set; }
        public int totalSubTask { get; set; }
        public int processSubTask { get; set; }
        public int doneSubTask { get; set; }
        public int state { get; set; }
        public string createTime { get; set; }
        public string ocrFinishTime { get; set; }
        public string finishTime { get; set; }
        public string[] subTaskList { get; set; }
    }

}
